package com.jcgyl.export.service;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.jcgyl.export.entity.Goods;
import com.jcgyl.export.util.entity.Result;

public interface GoodsService {
	/**
	 * 查询所有商品
	 */
	Map<String, Object> findAllGoods(String goodsname, String goodscode, String hscode, int pageSize, int startIndex);

	Result addGoods(Goods goods);

	Result updateGoods(Goods goods);

	Result deleteGoods(Goods  goods);
	// 根据商品名字查询的商品
	Goods findGoodsByGoodsName(@Param("goodsname") String goodsname);
	
}
